package com.qf.springfactory.service.impl;

import com.qf.springfactory.dao.UserDao;
import com.qf.springfactory.entity.User;
import com.qf.springfactory.service.UserService;

public class UserServiceImpl implements UserService {
    private UserDao userDao;

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public User getUser(Integer id) {
        System.out.println("完成查询用户的业务逻辑，具体任务交给userDao完成");
        return userDao.getUserById(id);
    }
}
